<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>测试Web加载本地页面</title>
        <style>
            .button {
                padding:10px;
                border:1px solid #000080;
                border-radius:10px;
                background-color:#000080;
                color:#ffffff;
                margin:10px
            }

        </style>
    </head>
    <body>
        <script>
            function onConfirm(){
                return confirm('JS Confirm 调用');
            }

            function onAlert(){
                alert('JS Alert');
            }

            // 应用测调用html页面JS函数测试
            function runJavaScript(){
                let str = 'JavaScript Hello World! ';
                console.info(str);
                document.getElementById("demo").innerHTML = str;
            }

            // 调用应用侧函数
            function callArkTS(){
                let str = objName.test();
                document.getElementById("demo").innerHTML = str;
            }
        </script>
        点击文件上传按钮：<input type="file" class="button" value="file"/></br>
        <button class="button" type="button" onclick="onAlert()">Alert</button></br>
        <button class="button" type="button" onclick="onConfirm()">Confirm</button></br>
        <p id="demo"></p>
    </body>
</html>